package com.dyl.controller;

import com.dyl.service.ClassesService;
import com.dyl.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类名：
 * 作者：DYL
 * 功能：
 */
@RestController
@RequestMapping("/classes")
public class ClassesController {
    @Autowired
    private ClassesService classesService;
    @GetMapping("/list")
    public R list(){
        return R.ok().data("list",classesService.list());
    }
}
